package com.jxud.service;

import com.jxud.Pojo.*;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.validation.Valid;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface ProductService {
    /**
     * 获取商品信息
     * @return
     */
    Map<String,Object> getProducts(PageProduct pageProduct, HttpServletRequest request);

    /**
     * 创建商品
     * @param product
     * @return
     */
    String createProducts(Product product);

    /**
     * 获取表的机构
     * @return
     */
    TableStructureResponse getTableStructure(String tableName);

    /**
     * 获取系列表信息
     * @param request
     * @return
     */
    Result getClassify(ClassifyRequest request);

    /**
     * 修改商品信息
     * @param product
     * @return
     */
    Boolean updateProducts(@Valid Product product);
}
